package com.zuoye.zuoye3;

public class Account {
    private String name;
    private String mima;
    private double money;
    private double samll;
    private int id;
    static int sum = 1000;

    public Account() {
    }

    public Account(String name, String mima, double money, double samll) {
        this.name = name;
        this.mima = mima;
        this.money = money;
        this.samll = samll;
        this.id = sum++;
    }

    public String getName() {
        return name;
    }


    public String getMima() {
        return mima;
    }


    public double getMoney() {
        return money;
    }


    public double getSamll() {
        return samll;
    }


    public int getId() {
        return id;
    }

    public static int getSum() {
        return sum;
    }

    @Override
    public String toString() {
        return "Account{" +
                "name='" + name + '\'' +
                ", mima='" + mima + '\'' +
                ", money=" + money +
                ", samll=" + samll +
                ", id=" + id +
                '}';
    }
}
